home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Mac OS / ColorSync 3.0 Mac SDK / Interfaces / CMScriptingPlugin.p < prev   
Encoding:
Text File  |  1999-10-28  |  19.2 KB  |  477 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMScriptingPlugin.p
  3.  
  4.      Contains:    ColorSync Scripting Plugin API
  5.  
  6.      Version:    Technology:    ColorSync 2.5
  7.                  Release:    ColorSync 3.0 SDK for use with Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1998-1999 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT CMScriptingPlugin;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __CMSCRIPTINGPLUGIN__}
  27. {$SETC __CMSCRIPTINGPLUGIN__ := 1}
  28.  
  29. {$I+}
  30. {$SETC CMScriptingPluginIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __FILES__}
  34. {$I Files.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __CMAPPLICATION__}
  37. {$I CMApplication.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __CODEFRAGMENTS__}
  40. {$I CodeFragments.p}
  41. {$ENDC}
  42.  
  43.  
  44.  
  45.  
  46. {$PUSH}
  47. {$ALIGN MAC68K}
  48. {$LibExport+}
  49.  
  50.  
  51. CONST
  52.                                                                 {  ColorSync Scripting AppleEvent Errors  }
  53.     cmspInvalidImageFile        = -4220;                        {  Plugin cannot handle this image file type  }
  54.     cmspInvalidImageSpace        = -4221;                        {  Plugin cannot create an image file of this colorspace  }
  55.     cmspInvalidProfileEmbed        = -4222;                        {  Specific invalid profile errors  }
  56.     cmspInvalidProfileSource    = -4223;
  57.     cmspInvalidProfileDest        = -4224;
  58.     cmspInvalidProfileProof        = -4225;
  59.     cmspInvalidProfileLink        = -4226;
  60.  
  61.  
  62. {*** embedFlags field  ***}
  63. { reserved for future use: currently 0 }
  64.  
  65. {*** matchFlags field  ***}
  66.     cmspFavorEmbeddedMask        = $00000001;                    {  if bit 0 is 0 then use srcProf profile, if 1 then use profile embedded in image if present }
  67.  
  68.  
  69. {*** scripting plugin entry points  ***}
  70.  
  71. TYPE
  72. {$IFC TYPED_FUNCTION_POINTERS}
  73.     ValidateImageProcPtr = FUNCTION({CONST}VAR spec: FSSpec): CMError; C;
  74. {$ELSEC}
  75.     ValidateImageProcPtr = ProcPtr;
  76. {$ENDC}
  77.  
  78. {$IFC TYPED_FUNCTION_POINTERS}
  79.     GetImageSpaceProcPtr = FUNCTION({CONST}VAR spec: FSSpec; VAR space: OSType): CMError; C;
  80. {$ELSEC}
  81.     GetImageSpaceProcPtr = ProcPtr;
  82. {$ENDC}
  83.  
  84. {$IFC TYPED_FUNCTION_POINTERS}
  85.     ValidateSpaceProcPtr = FUNCTION({CONST}VAR spec: FSSpec; VAR space: OSType): CMError; C;
  86. {$ELSEC}
  87.     ValidateSpaceProcPtr = ProcPtr;
  88. {$ENDC}
  89.  
  90. {$IFC TYPED_FUNCTION_POINTERS}
  91.     EmbedImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; embedProf: CMProfileRef; embedFlags: UInt32): CMError; C;
  92. {$ELSEC}
  93.     EmbedImageProcPtr = ProcPtr;
  94. {$ENDC}
  95.  
  96. {$IFC TYPED_FUNCTION_POINTERS}
  97.     UnembedImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec): CMError; C;
  98. {$ELSEC}
  99.     UnembedImageProcPtr = ProcPtr;
  100. {$ENDC}
  101.  
  102. {$IFC TYPED_FUNCTION_POINTERS}
  103.     MatchImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; qual: UInt32; srcIntent: UInt32; srcProf: CMProfileRef; dstProf: CMProfileRef; prfProf: CMProfileRef; matchFlags: UInt32): CMError; C;
  104. {$ELSEC}
  105.     MatchImageProcPtr = ProcPtr;
  106. {$ENDC}
  107.  
  108. {$IFC TYPED_FUNCTION_POINTERS}
  109.     CountImageProfilesProcPtr = FUNCTION({CONST}VAR spec: FSSpec; VAR count: UInt32): CMError; C;
  110. {$ELSEC}
  111.     CountImageProfilesProcPtr = ProcPtr;
  112. {$ENDC}
  113.  
  114. {$IFC TYPED_FUNCTION_POINTERS}
  115.     GetIndImageProfileProcPtr = FUNCTION({CONST}VAR spec: FSSpec; index: UInt32; VAR prof: CMProfileRef): CMError; C;
  116. {$ELSEC}
  117.     GetIndImageProfileProcPtr = ProcPtr;
  118. {$ENDC}
  119.  
  120. {$IFC TYPED_FUNCTION_POINTERS}
  121.     SetIndImageProfileProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; index: UInt32; prof: CMProfileRef; embedFlags: UInt32): CMError; C;
  122. {$ELSEC}
  123.     SetIndImageProfileProcPtr = ProcPtr;
  124. {$ENDC}
  125.  
  126. {*** CSScriptingLib entry points  ***}
  127. {$IFC TYPED_FUNCTION_POINTERS}
  128.     CMValidImageProcPtr = FUNCTION({CONST}VAR spec: FSSpec): CMError; C;
  129. {$ELSEC}
  130.     CMValidImageProcPtr = ProcPtr;
  131. {$ENDC}
  132.  
  133. {$IFC TYPED_FUNCTION_POINTERS}
  134.     CMGetImageSpaceProcPtr = FUNCTION({CONST}VAR spec: FSSpec; VAR space: OSType): CMError; C;
  135. {$ELSEC}
  136.     CMGetImageSpaceProcPtr = ProcPtr;
  137. {$ENDC}
  138.  
  139. {$IFC TYPED_FUNCTION_POINTERS}
  140.     CMEmbedImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; embProf: CMProfileRef): CMError; C;
  141. {$ELSEC}
  142.     CMEmbedImageProcPtr = ProcPtr;
  143. {$ENDC}
  144.  
  145. {$IFC TYPED_FUNCTION_POINTERS}
  146.     CMUnembedImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN): CMError; C;
  147. {$ELSEC}
  148.     CMUnembedImageProcPtr = ProcPtr;
  149. {$ENDC}
  150.  
  151. {$IFC TYPED_FUNCTION_POINTERS}
  152.     CMMatchImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef): CMError; C;
  153. {$ELSEC}
  154.     CMMatchImageProcPtr = ProcPtr;
  155. {$ENDC}
  156.  
  157. {$IFC TYPED_FUNCTION_POINTERS}
  158.     CMProofImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef; prfProf: CMProfileRef): CMError; C;
  159. {$ELSEC}
  160.     CMProofImageProcPtr = ProcPtr;
  161. {$ENDC}
  162.  
  163. {$IFC TYPED_FUNCTION_POINTERS}
  164.     CMLinkImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; lnkProf: CMProfileRef; lnkIntent: UInt32): CMError; C;
  165. {$ELSEC}
  166.     CMLinkImageProcPtr = ProcPtr;
  167. {$ENDC}
  168.  
  169. {$IFC TYPED_FUNCTION_POINTERS}
  170.     CMCountImageProfilesProcPtr = FUNCTION({CONST}VAR spec: FSSpec; VAR count: UInt32): CMError; C;
  171. {$ELSEC}
  172.     CMCountImageProfilesProcPtr = ProcPtr;
  173. {$ENDC}
  174.  
  175. {$IFC TYPED_FUNCTION_POINTERS}
  176.     CMGetIndImageProfileProcPtr = FUNCTION({CONST}VAR spec: FSSpec; index: UInt32; VAR prof: CMProfileRef): CMError; C;
  177. {$ELSEC}
  178.     CMGetIndImageProfileProcPtr = ProcPtr;
  179. {$ENDC}
  180.  
  181. {$IFC TYPED_FUNCTION_POINTERS}
  182.     CMSetIndImageProfileProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; index: UInt32; prof: CMProfileRef): CMError; C;
  183. {$ELSEC}
  184.     CMSetIndImageProfileProcPtr = ProcPtr;
  185. {$ENDC}
  186.  
  187.     ValidateImageUPP = UniversalProcPtr;
  188.     GetImageSpaceUPP = UniversalProcPtr;
  189.     ValidateSpaceUPP = UniversalProcPtr;
  190.     EmbedImageUPP = UniversalProcPtr;
  191.     UnembedImageUPP = UniversalProcPtr;
  192.     MatchImageUPP = UniversalProcPtr;
  193.     CountImageProfilesUPP = UniversalProcPtr;
  194.     GetIndImageProfileUPP = UniversalProcPtr;
  195.     SetIndImageProfileUPP = UniversalProcPtr;
  196.     CMValidImageUPP = UniversalProcPtr;
  197.     CMGetImageSpaceUPP = UniversalProcPtr;
  198.     CMEmbedImageUPP = UniversalProcPtr;
  199.     CMUnembedImageUPP = UniversalProcPtr;
  200.     CMMatchImageUPP = UniversalProcPtr;
  201.     CMProofImageUPP = UniversalProcPtr;
  202.     CMLinkImageUPP = UniversalProcPtr;
  203.     CMCountImageProfilesUPP = UniversalProcPtr;
  204.     CMGetIndImageProfileUPP = UniversalProcPtr;
  205.     CMSetIndImageProfileUPP = UniversalProcPtr;
  206.  
  207. CONST
  208.     uppValidateImageProcInfo = $000000F1;
  209.     uppGetImageSpaceProcInfo = $000003F1;
  210.     uppValidateSpaceProcInfo = $000003F1;
  211.     uppEmbedImageProcInfo = $00003FF1;
  212.     uppUnembedImageProcInfo = $000003F1;
  213.     uppMatchImageProcInfo = $003FFFF1;
  214.     uppCountImageProfilesProcInfo = $000003F1;
  215.     uppGetIndImageProfileProcInfo = $00000FF1;
  216.     uppSetIndImageProfileProcInfo = $0000FFF1;
  217.     uppCMValidImageProcInfo = $000000F1;
  218.     uppCMGetImageSpaceProcInfo = $000003F1;
  219.     uppCMEmbedImageProcInfo = $000037F1;
  220.     uppCMUnembedImageProcInfo = $000007F1;
  221.     uppCMMatchImageProcInfo = $000FF7F1;
  222.     uppCMProofImageProcInfo = $003FF7F1;
  223.     uppCMLinkImageProcInfo = $0003F7F1;
  224.     uppCMCountImageProfilesProcInfo = $000003F1;
  225.     uppCMGetIndImageProfileProcInfo = $00000FF1;
  226.     uppCMSetIndImageProfileProcInfo = $0000F7F1;
  227.  
  228. FUNCTION NewValidateImageUPP(userRoutine: ValidateImageProcPtr): ValidateImageUPP; { old name was NewValidateImageProc }
  229.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  230.     INLINE $2E9F;
  231.     {$ENDC}
  232.  
  233. FUNCTION NewGetImageSpaceUPP(userRoutine: GetImageSpaceProcPtr): GetImageSpaceUPP; { old name was NewGetImageSpaceProc }
  234.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  235.     INLINE $2E9F;
  236.     {$ENDC}
  237.  
  238. FUNCTION NewValidateSpaceUPP(userRoutine: ValidateSpaceProcPtr): ValidateSpaceUPP; { old name was NewValidateSpaceProc }
  239.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  240.     INLINE $2E9F;
  241.     {$ENDC}
  242.  
  243. FUNCTION NewEmbedImageUPP(userRoutine: EmbedImageProcPtr): EmbedImageUPP; { old name was NewEmbedImageProc }
  244.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  245.     INLINE $2E9F;
  246.     {$ENDC}
  247.  
  248. FUNCTION NewUnembedImageUPP(userRoutine: UnembedImageProcPtr): UnembedImageUPP; { old name was NewUnembedImageProc }
  249.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  250.     INLINE $2E9F;
  251.     {$ENDC}
  252.  
  253. FUNCTION NewMatchImageUPP(userRoutine: MatchImageProcPtr): MatchImageUPP; { old name was NewMatchImageProc }
  254.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  255.     INLINE $2E9F;
  256.     {$ENDC}
  257.  
  258. FUNCTION NewCountImageProfilesUPP(userRoutine: CountImageProfilesProcPtr): CountImageProfilesUPP; { old name was NewCountImageProfilesProc }
  259.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  260.     INLINE $2E9F;
  261.     {$ENDC}
  262.  
  263. FUNCTION NewGetIndImageProfileUPP(userRoutine: GetIndImageProfileProcPtr): GetIndImageProfileUPP; { old name was NewGetIndImageProfileProc }
  264.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  265.     INLINE $2E9F;
  266.     {$ENDC}
  267.  
  268. FUNCTION NewSetIndImageProfileUPP(userRoutine: SetIndImageProfileProcPtr): SetIndImageProfileUPP; { old name was NewSetIndImageProfileProc }
  269.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  270.     INLINE $2E9F;
  271.     {$ENDC}
  272.  
  273. FUNCTION NewCMValidImageUPP(userRoutine: CMValidImageProcPtr): CMValidImageUPP; { old name was NewCMValidImageProc }
  274.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  275.     INLINE $2E9F;
  276.     {$ENDC}
  277.  
  278. FUNCTION NewCMGetImageSpaceUPP(userRoutine: CMGetImageSpaceProcPtr): CMGetImageSpaceUPP; { old name was NewCMGetImageSpaceProc }
  279.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  280.     INLINE $2E9F;
  281.     {$ENDC}
  282.  
  283. FUNCTION NewCMEmbedImageUPP(userRoutine: CMEmbedImageProcPtr): CMEmbedImageUPP; { old name was NewCMEmbedImageProc }
  284.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  285.     INLINE $2E9F;
  286.     {$ENDC}
  287.  
  288. FUNCTION NewCMUnembedImageUPP(userRoutine: CMUnembedImageProcPtr): CMUnembedImageUPP; { old name was NewCMUnembedImageProc }
  289.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  290.     INLINE $2E9F;
  291.     {$ENDC}
  292.  
  293. FUNCTION NewCMMatchImageUPP(userRoutine: CMMatchImageProcPtr): CMMatchImageUPP; { old name was NewCMMatchImageProc }
  294.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  295.     INLINE $2E9F;
  296.     {$ENDC}
  297.  
  298. FUNCTION NewCMProofImageUPP(userRoutine: CMProofImageProcPtr): CMProofImageUPP; { old name was NewCMProofImageProc }
  299.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  300.     INLINE $2E9F;
  301.     {$ENDC}
  302.  
  303. FUNCTION NewCMLinkImageUPP(userRoutine: CMLinkImageProcPtr): CMLinkImageUPP; { old name was NewCMLinkImageProc }
  304.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  305.     INLINE $2E9F;
  306.     {$ENDC}
  307.  
  308. FUNCTION NewCMCountImageProfilesUPP(userRoutine: CMCountImageProfilesProcPtr): CMCountImageProfilesUPP; { old name was NewCMCountImageProfilesProc }
  309.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  310.     INLINE $2E9F;
  311.     {$ENDC}
  312.  
  313. FUNCTION NewCMGetIndImageProfileUPP(userRoutine: CMGetIndImageProfileProcPtr): CMGetIndImageProfileUPP; { old name was NewCMGetIndImageProfileProc }
  314.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  315.     INLINE $2E9F;
  316.     {$ENDC}
  317.  
  318. FUNCTION NewCMSetIndImageProfileUPP(userRoutine: CMSetIndImageProfileProcPtr): CMSetIndImageProfileUPP; { old name was NewCMSetIndImageProfileProc }
  319.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  320.     INLINE $2E9F;
  321.     {$ENDC}
  322.  
  323. PROCEDURE DisposeValidateImageUPP(userUPP: ValidateImageUPP);
  324.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  325.     INLINE $594F;
  326.     {$ENDC}
  327.  
  328. PROCEDURE DisposeGetImageSpaceUPP(userUPP: GetImageSpaceUPP);
  329.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  330.     INLINE $594F;
  331.     {$ENDC}
  332.  
  333. PROCEDURE DisposeValidateSpaceUPP(userUPP: ValidateSpaceUPP);
  334.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  335.     INLINE $594F;
  336.     {$ENDC}
  337.  
  338. PROCEDURE DisposeEmbedImageUPP(userUPP: EmbedImageUPP);
  339.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  340.     INLINE $594F;
  341.     {$ENDC}
  342.  
  343. PROCEDURE DisposeUnembedImageUPP(userUPP: UnembedImageUPP);
  344.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  345.     INLINE $594F;
  346.     {$ENDC}
  347.  
  348. PROCEDURE DisposeMatchImageUPP(userUPP: MatchImageUPP);
  349.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  350.     INLINE $594F;
  351.     {$ENDC}
  352.  
  353. PROCEDURE DisposeCountImageProfilesUPP(userUPP: CountImageProfilesUPP);
  354.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  355.     INLINE $594F;
  356.     {$ENDC}
  357.  
  358. PROCEDURE DisposeGetIndImageProfileUPP(userUPP: GetIndImageProfileUPP);
  359.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  360.     INLINE $594F;
  361.     {$ENDC}
  362.  
  363. PROCEDURE DisposeSetIndImageProfileUPP(userUPP: SetIndImageProfileUPP);
  364.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  365.     INLINE $594F;
  366.     {$ENDC}
  367.  
  368. PROCEDURE DisposeCMValidImageUPP(userUPP: CMValidImageUPP);
  369.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  370.     INLINE $594F;
  371.     {$ENDC}
  372.  
  373. PROCEDURE DisposeCMGetImageSpaceUPP(userUPP: CMGetImageSpaceUPP);
  374.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  375.     INLINE $594F;
  376.     {$ENDC}
  377.  
  378. PROCEDURE DisposeCMEmbedImageUPP(userUPP: CMEmbedImageUPP);
  379.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  380.     INLINE $594F;
  381.     {$ENDC}
  382.  
  383. PROCEDURE DisposeCMUnembedImageUPP(userUPP: CMUnembedImageUPP);
  384.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  385.     INLINE $594F;
  386.     {$ENDC}
  387.  
  388. PROCEDURE DisposeCMMatchImageUPP(userUPP: CMMatchImageUPP);
  389.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  390.     INLINE $594F;
  391.     {$ENDC}
  392.  
  393. PROCEDURE DisposeCMProofImageUPP(userUPP: CMProofImageUPP);
  394.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  395.     INLINE $594F;
  396.     {$ENDC}
  397.  
  398. PROCEDURE DisposeCMLinkImageUPP(userUPP: CMLinkImageUPP);
  399.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  400.     INLINE $594F;
  401.     {$ENDC}
  402.  
  403. PROCEDURE DisposeCMCountImageProfilesUPP(userUPP: CMCountImageProfilesUPP);
  404.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  405.     INLINE $594F;
  406.     {$ENDC}
  407.  
  408. PROCEDURE DisposeCMGetIndImageProfileUPP(userUPP: CMGetIndImageProfileUPP);
  409.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  410.     INLINE $594F;
  411.     {$ENDC}
  412.  
  413. PROCEDURE DisposeCMSetIndImageProfileUPP(userUPP: CMSetIndImageProfileUPP);
  414.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  415.     INLINE $594F;
  416.     {$ENDC}
  417.  
  418. FUNCTION InvokeValidateImageUPP({CONST}VAR spec: FSSpec; userRoutine: ValidateImageUPP): CMError; { old name was CallValidateImageProc }
  419.  
  420. FUNCTION InvokeGetImageSpaceUPP({CONST}VAR spec: FSSpec; VAR space: OSType; userRoutine: GetImageSpaceUPP): CMError; { old name was CallGetImageSpaceProc }
  421.  
  422. FUNCTION InvokeValidateSpaceUPP({CONST}VAR spec: FSSpec; VAR space: OSType; userRoutine: ValidateSpaceUPP): CMError; { old name was CallValidateSpaceProc }
  423.  
  424. FUNCTION InvokeEmbedImageUPP({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; embedProf: CMProfileRef; embedFlags: UInt32; userRoutine: EmbedImageUPP): CMError; { old name was CallEmbedImageProc }
  425.  
  426. FUNCTION InvokeUnembedImageUPP({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; userRoutine: UnembedImageUPP): CMError; { old name was CallUnembedImageProc }
  427.  
  428. FUNCTION InvokeMatchImageUPP({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; qual: UInt32; srcIntent: UInt32; srcProf: CMProfileRef; dstProf: CMProfileRef; prfProf: CMProfileRef; matchFlags: UInt32; userRoutine: MatchImageUPP): CMError; { old name was CallMatchImageProc }
  429.  
  430. FUNCTION InvokeCountImageProfilesUPP({CONST}VAR spec: FSSpec; VAR count: UInt32; userRoutine: CountImageProfilesUPP): CMError; { old name was CallCountImageProfilesProc }
  431.  
  432. FUNCTION InvokeGetIndImageProfileUPP({CONST}VAR spec: FSSpec; index: UInt32; VAR prof: CMProfileRef; userRoutine: GetIndImageProfileUPP): CMError; { old name was CallGetIndImageProfileProc }
  433.  
  434. FUNCTION InvokeSetIndImageProfileUPP({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; index: UInt32; prof: CMProfileRef; embedFlags: UInt32; userRoutine: SetIndImageProfileUPP): CMError; { old name was CallSetIndImageProfileProc }
  435.  
  436. FUNCTION InvokeCMValidImageUPP({CONST}VAR spec: FSSpec; userRoutine: CMValidImageUPP): CMError; { old name was CallCMValidImageProc }
  437.  
  438. FUNCTION InvokeCMGetImageSpaceUPP({CONST}VAR spec: FSSpec; VAR space: OSType; userRoutine: CMGetImageSpaceUPP): CMError; { old name was CallCMGetImageSpaceProc }
  439.  
  440. FUNCTION InvokeCMEmbedImageUPP({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; embProf: CMProfileRef; userRoutine: CMEmbedImageUPP): CMError; { old name was CallCMEmbedImageProc }
  441.  
  442. FUNCTION InvokeCMUnembedImageUPP({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; userRoutine: CMUnembedImageUPP): CMError; { old name was CallCMUnembedImageProc }
  443.  
  444. FUNCTION InvokeCMMatchImageUPP({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef; userRoutine: CMMatchImageUPP): CMError; { old name was CallCMMatchImageProc }
  445.  
  446. FUNCTION InvokeCMProofImageUPP({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef; prfProf: CMProfileRef; userRoutine: CMProofImageUPP): CMError; { old name was CallCMProofImageProc }
  447.  
  448. FUNCTION InvokeCMLinkImageUPP({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; lnkProf: CMProfileRef; lnkIntent: UInt32; userRoutine: CMLinkImageUPP): CMError; { old name was CallCMLinkImageProc }
  449.  
  450. FUNCTION InvokeCMCountImageProfilesUPP({CONST}VAR spec: FSSpec; VAR count: UInt32; userRoutine: CMCountImageProfilesUPP): CMError; { old name was CallCMCountImageProfilesProc }
  451.  
  452. FUNCTION InvokeCMGetIndImageProfileUPP({CONST}VAR spec: FSSpec; index: UInt32; VAR prof: CMProfileRef; userRoutine: CMGetIndImageProfileUPP): CMError; { old name was CallCMGetIndImageProfileProc }
  453.  
  454. FUNCTION InvokeCMSetIndImageProfileUPP({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; index: UInt32; prof: CMProfileRef; userRoutine: CMSetIndImageProfileUPP): CMError; { old name was CallCMSetIndImageProfileProc }
  455. {*** CSScriptingLib API  ***}
  456.  
  457. FUNCTION CMValidImage({CONST}VAR spec: FSSpec): CMError; C;
  458. FUNCTION CMGetImageSpace({CONST}VAR spec: FSSpec; VAR space: OSType): CMError; C;
  459. FUNCTION CMEmbedImage({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; embProf: CMProfileRef): CMError; C;
  460. FUNCTION CMUnembedImage({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN): CMError; C;
  461. FUNCTION CMMatchImage({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef): CMError; C;
  462. FUNCTION CMProofImage({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef; prfProf: CMProfileRef): CMError; C;
  463. FUNCTION CMLinkImage({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; lnkProf: CMProfileRef; lnkIntent: UInt32): CMError; C;
  464. FUNCTION CMCountImageProfiles({CONST}VAR spec: FSSpec; VAR count: UInt32): CMError; C;
  465. FUNCTION CMGetIndImageProfile({CONST}VAR spec: FSSpec; index: UInt32; VAR prof: CMProfileRef): CMError; C;
  466. FUNCTION CMSetIndImageProfile({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; index: UInt32; prof: CMProfileRef): CMError; C;
  467. {$ALIGN RESET}
  468. {$POP}
  469.  
  470. {$SETC UsingIncludes := CMScriptingPluginIncludes}
  471.  
  472. {$ENDC} {__CMSCRIPTINGPLUGIN__}
  473.  
  474. {$IFC NOT UsingIncludes}
  475.  END.
  476. {$ENDC}
  477.